import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// svg配置代码
import 'virtual:svg-icons-register'
// 全局的scss变量
import '@/styles/index.scss'

import App from '@/App.vue'
import router from '@/router/index'

const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn, // 国际化语言配置
})
app.use(router)
app.mount('#app')
// console.log(import.meta.env) // 获取环境变量
